package com.rcmd.cmd;

import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;

public class CMDCommand extends Command{
	String cmd ;
	public CMDCommand(String cmd){
		super(Command.CMDCOMMAND) ;
		this.cmd = cmd ;
	}
	public CMDCommand(){
		this("") ;
	}
	@Override
	protected void read(ObjectInput in) throws IOException,
			ClassNotFoundException {
		cmd=in.readUTF() ;
	}
	@Override
	protected void write(ObjectOutput out) throws IOException {
		out.writeUTF(cmd) ;
	}
	public String getCmd() {
		return cmd;
	}
	public void setCmd(String cmd) {
		this.cmd = cmd;
	}
}
